from django.shortcuts import render, render_to_response
from django.http import HttpResponse
from django.views import View
from app.books1.models import BookInfo


# Create your views here.

# 定义视图函数
def book(request):

    result=BookInfo.objects.values_list()

    return render(
        request,'CRUD.html',{

            'result':result,

    })